package com.yilin.tms.core.entity.gps.hyb;

import java.io.Serializable;

/**
 *
 */
public class HybReturn<T> implements Serializable {
    private Integer code;
    private String message;
    private T body;

    public HybReturn() {
    }

    public HybReturn(int i, String msg) {
        this.code = i;
        this.message = msg;
    }

    public Boolean getSuccess() {
        return code == 0;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getBody() {
        return body;
    }

    public void setBody(T body) {
        this.body = body;
    }
}
